package xin.fsqr520.project.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 动态点赞记录实体类
 * 对应数据库表 post_like
 */
@Data
@TableName("post_like")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PostLike {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 被点赞的动态ID
     */
    @TableField("post_id")
    private Long postId;

    /**
     * 点赞用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 点赞时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
}
